package net.hn.hnms.biz.intelligence.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.Instant;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AlarmData {

    @ApiModelProperty("最大值")
    private BigDecimal maxValue;
    @ApiModelProperty("最大值发生时间")
    private Instant    maxValueTime;
    @ApiModelProperty("开始时间")
    private Instant    beginTime;
    @ApiModelProperty("结束时间")
    private Instant    endTime;
    @ApiModelProperty("异常类型")
    private String    outlierType;
    @ApiModelProperty("异常类型名称")
    private String    outlierTypeName;
    @ApiModelProperty("持续时间")
    private BigInteger duration;

    public AlarmData(BigDecimal maxValue, Instant maxValueTime, Instant beginTime, Instant endTime, String outlierType) {
        this.maxValue = maxValue;
        this.maxValueTime = maxValueTime;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.outlierType = outlierType;
    }
}
